<script type="text/javascript" src="/public/library/jquery/jquery.form.js"></script>
<script src="/public/library/hvn/event.search.js" type="text/javascript"></script>
<script src="/public/library/hvn/event.js" type="text/javascript"></script>
<script src="/public/library/hvn/place.js" type="text/javascript"></script>

<link type="text/css" href="public/theme/hard/css/herevn_blue.css" rel="stylesheet" media="screen" />
<link rel="stylesheet" href="/public/library/jquery/calendar/excite-bike/jquery-ui-1.7.1.custom.css" type="text/css" media="screen" />

<script type="text/javascript" src="/public/library/jquery/calendar/amlich.js"></script>
<script type="text/javascript" src="/public/library/jquery/calendar/ui.core.js"></script>
<script type="text/javascript" src="/public/library/jquery/calendar/ui.datepicker.js"></script>
<script type="text/javascript" src="/public/library/jquery/calendar/ui.datepicker-lang.js"></script>
<script type="text/javascript">
	
	$(function(){
//		getAddress(mode);
//	    getCategoryType(mode);
	    
	    $('.chooseOtherCategory').openDOMWindow({ 
	                        height:100, 
	                        width:420, 
	                        positionType:'centered', 
	                        positionTop:100, 
	                        eventType:'click', 
	                        positionLeft:100, 
	                        windowSourceID:'#chooseCategory', 
	                        windowPadding:50, 
	                        /*draggable:1,*/ 
	                        windowBGColor:'#FFFFFF', 
	                        borderColor:'#a8d9f8',
	                        borderSize: '12', 
	                        overlayOpacity:40 
	                });
	});
</script>
                <div class="box">
                <div class="camnang_bar_share">&nbsp;&nbsp;&nbsp;<?=t(223)?></div>
                <div class="chitiet_content">
                
                <div class="camnang_box_list">
                    <?php 	
                    $sess = new Zend_Session_Namespace(CLU_NS);
        			foreach ($this->viewParams['eList'] as $e) :?>  
        			<?if($e['id'] != $this->viewParams['eList'][0]['id']) :?>
	        			<?$thumb = str_replace("/original/","/medium/", $e['thumb']);?> 
	        			<!--
	                     <? if (strpos($sess->userPermissions, 'update event')) :?>
							<div style="background:#ffffff; text-align:right; width:680px; margin:0 7px;">
							<a href="<?=$this->hvnUrl(array('module' => 'event', 'action' => 'edit'))?>?id=<?=$e['id']?>"><?=t(135)?></a>
							| <a href="<?=$this->hvnUrl(array('module' => 'article', 'action' => 'translate'))?>?id=<?=$this->viewParams['listArticle'][$e['id']]->article_id?>&to=en"><?=t(90)?></a>
							</div>
						<?endif ?>
						-->
	                	<div class="list_news border_news">
	   					  <div class="news_title"><a href="<?=$this->hvnUrl(array('module' => 'event', 'action' => 'view'))?>?id=<?=$e['id']?>"><?= $this->viewParams['listArticle'][$e['id']]['article_title'] ?></a></div>
	                      <div class="clear"></div>
	                   	  <div class="news_img">
							<img align="absmiddle" src="<?=$thumb?>"/>
						  </div>
		                <div class="text"><?= $this->viewParams['listArticle'][$e['id']]['article_body'] ?></div>
	                	<div class="detail"><a href="<?=$this->hvnUrl(array('module' => 'event', 'action' => 'view'))?>?id=<?=$e['id']?>"><?=t(150)?></a></div>
	                </div>
	                <div class="clear"></div>
    				<script type="text/javascript">
						var oriLang = '<?= $this->viewParams['listArticle'][$e['id']]['article_language']?>';
						var lang = '<?= $sess->viewLang?>';
					    googleTranslate(oriLang, lang, 'news_title', 'text');
					</script>
	                <?endif?>
             <?php  endforeach?>
             <div>
             <?
               $pageCount = ceil($this->viewParams['paginator']->getTotalItemCount()/$this->viewParams['paginator']->getItemCountPerPage());
             ?>


<? if ($pageCount > 1) :?>
	<?= $this->paginationControl($this->viewParams['paginator'], 'Sliding', '/modules/common/views/scripts/commonTheme/commonLang/common/clu-pagination-control.phtml',
							    array('searchUrl' => $this->viewParams['searchUrl'])); ?>
<?endif ?>
</div>      


                </div>    
                      <div class="camnang_town">
                         <div class="box_category_bar"><?=t(779)?></div>
                         <?$i = 0;?>
                         <?php  foreach($this->viewParams['listCategory'] as $c):?> 
                         <div class="box_category_title"><a href="<?=$this->hvnUrl(array('module' => 'event', 'action' => 'search'), 'nocontroller')?>?cluSearch=1&category=<?=$c['id']?>"><?= p($c['name']);?></a></div>
                         <div class="clear"></div>
                         <?$i++;?><?if($i == 7) :?><?break;?><?endif?>
                         <?php endforeach ?>
                      
                         <div class="clear"></div>
                         
                         <div class="box_category_bar"><?=t(170)?></div>
                         <div class="clear"></div>
                         <div class="vietnam_photo_img" align="center"><img src="/public/themes/hard/images/vietnam_photo.jpg" align="absmiddle"></div>
                         <div class="clear"></div>
                         <div class="vietnam_photo_img" align="center"><img src="/public/themes/hard/images/vietnam_photo.jpg" align="absmiddle"></div>
                         <div class="clear"></div>
                         
                      </div>
                   </div>   
                </div>
            <div class="clear"></div>